-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#491] Ensure enum string literals are null terminated #538
Merged
elfenpiff
merged 5 commits into
eclipse-iceoryx:main
from
orecham:iox2-491-fix-bug-in-enum-string-literal-generation
Dec 23, 2024
Merged
[#491] Ensure enum string literals are null terminated #538
elfenpiff
merged 5 commits into
eclipse-iceoryx:main
from
orecham:iox2-491-fix-bug-in-enum-string-literal-generation
Dec 23, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #538 +/- ##
==========================================
+ Coverage 79.04% 79.28% +0.23%
==========================================
Files 203 203
Lines 25307 25230 -77
==========================================
- Hits 20005 20003 -2
+ Misses 5302 5227 -75
|
elfenpiff
reviewed
Dec 2, 2024
elBoberido
reviewed
Dec 2, 2024
orecham
force-pushed
the
iox2-491-fix-bug-in-enum-string-literal-generation
branch
2 times, most recently
from
December 23, 2024 05:05
ee01d63
to
bf54dfb
Compare
orecham
force-pushed
the
iox2-491-fix-bug-in-enum-string-literal-generation
branch
2 times, most recently
from
December 23, 2024 05:26
fc2e2a5
to
fc6c300
Compare
orecham
force-pushed
the
iox2-491-fix-bug-in-enum-string-literal-generation
branch
from
December 23, 2024 05:32
fc6c300
to
e53f505
Compare
@elfenpiff @elBoberido Finally got around to addressing issues in this PR. Only one of you needs to review. Update:
|
orecham
force-pushed
the
iox2-491-fix-bug-in-enum-string-literal-generation
branch
from
December 23, 2024 05:48
e53f505
to
6dedde8
Compare
orecham
force-pushed
the
iox2-491-fix-bug-in-enum-string-literal-generation
branch
from
December 23, 2024 06:01
6dedde8
to
c5ee757
Compare
elBoberido
approved these changes
Dec 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Notes for Reviewer
Fix bug where string literals were not null terminated and clean up implementation:
AsCStr
which providesas_const_cstr()
method, const alluding to the fact it is in.rodata
CStrRepr
so#[derive(CStrRepr)]
reads more naturallyCStr
typeCStrRepr
macro intoiceoryx2-ffi-macros
since it is only used byiceoryx2-ffi
Unrelated: Also fix typo in existing
assert_that
message.Pre-Review Checklist for the PR Author
SPDX-License-Identifier: Apache-2.0 OR MIT
iox2-123-introduce-posix-ipc-example
)[#123] Add posix ipc example
)Changelog updated in the unreleased section including API breaking changestask-list-completed
)Checklist for the PR Reviewer
Post-review Checklist for the PR Author
References
Closes #491